﻿#ifndef __SS_TEST_THREAD_H__
#define __SS_TEST_THREAD_H__
#include <cstdio>
#include "ssTestMsgThread.h"

using namespace StarSeeker;

class ssTestThread : public ssThreadBase
{
public:
	ssTestThread(int id, ssMsgThread* ptest)
	{
		m_id = id;
		m_test = ptest;
		m_send = 0;
	}
private:
	virtual void ThreadMemberFunc()
	{
		while (true)
		{
			m_test->PostMsg(100, m_id, 0, 0, 0);
			printf("thread1:s %d\n", ++m_send);
			ssThreadBase::Sleep(1);
		}
	}

public:
	int m_id;
	ssMsgThread* m_test;
	int m_send;
};

#endif
